package com.xiaowei.gym.gymjsp.ware.dao;

import com.xiaowei.gym.gymjsp.ware.dto.AdminDTO;
import com.xiaowei.gym.gymjsp.ware.entity.AdminEntity;
import com.xiaowei.gym.gymjsp.ware.vo.AdminVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

public interface AdminDao{

    int createAdmin(AdminEntity adminEntity);

    int getAdminCount();

    AdminEntity validate(String username, String password);

    List<AdminEntity> getAdminList(String queryUserName, int currentPageNo, int pageSize);

    AdminEntity getAdminById(Integer id);

    Integer modify(AdminEntity adminEntity);

    int[] deleteAdminByIds(Integer[] delId);

    Map<String, Object> validAdmin(AdminDTO adminDTO);

    List<AdminVo> selectByPage(int offset, int pageSize);
}
